package com.apobates.jforum2.troll.threads.biz.dao;

import com.apobates.jforum2.troll.threads.entity.TopicConfig;
import com.apobates.jforum2.troll.utils.persistence.DataRepository;
import java.util.Optional;

/**
 * 话题配置的持久层接口
 *
 * @author xiaofanku
 * @since 20200510
 */
public interface TopicConfigDao extends DataRepository<TopicConfig, Long>{
    /**
     * 查看指定话题的配置
     *
     * @param topicId 话题ID
     * @return
     */
    Optional<TopicConfig> findOneByTopic(long topicId);
}